module.exports = {
  // @babel/core 是babel编译器的核心代码，最新版本是v7
  presets: [
    "env",
    ['@babel/preset-env', {}],
    ['@babel/preset-react', {}],
    ['@babel/preset-typescript', {}],
  ],
  plugins: [
    ["@babel/plugin-proposal-decorators", { "legacy": true }],
    "@babel/plugin-proposal-class-properties",
    "@babel/plugin-proposal-async-do-expressions",
    "@babel/plugin-transform-async-to-generator"
  ]
}